package com.liyunc.demo.comp.entity.base;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.liyunc.demo.comp.common.db.IdentifiedObject;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.MappedSuperclass;

/**
 * @author liyuncong
 * @version 1.0
 * @file LogicRemovableEntity.java
 * @brief LogicRemovableEntity
 * @details LogicRemovableEntity
 * @date 2022-03-04
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                     NAME               DESCRIPTION
 * 2022-03-04               liyuncong       Created
 */
@MappedSuperclass
@Getter
@Setter
public abstract class LogicRemovableEntity implements IdentifiedObject {
    @TableLogic(delval = "0", value = "1")
    @TableField(fill = FieldFill.INSERT)
    private Integer rowStatus;
}
